import { http } from '@/utils/http'

export function usePersScheduleApi() {
  return {
    getPersonnelScheduling(id: string) {
      return http.get<DispatchApplyForm>(`/prod-api/admin-api/project/personnel-scheduling/get?id=${id}`)
    },
    getPersonnelSchedulingPage(query: any) {
      return http.get('/prod-api/admin-api/project/personnel-scheduling/page', query)
    },
    getPSProcessInstanceId(processInstanceId: string) {
      return http.get<DispatchApplyForm>('/prod-api/admin-api/project/personnel-scheduling/getByProcessInstanceId?processInstanceId=' + processInstanceId)
    }
  }
}
